package com.ysd.lis.controller.sta;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.dto.sta.StaDto;
import com.ysd.lis.dto.sta.StaParam;
import com.ysd.lis.entity.sta.StaColonyCount;
import com.ysd.lis.service.sta.StaColonyCountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * cold_chain.sys_module 前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-12-18
 */
@Api(tags = "标准功能")
@RestController
@RequestMapping("/lis/sta/staColonyCount")
public class StaColonyCountController extends BaseController {

    @Autowired
    StaColonyCountService staColonyCountService;

    @ApiOperation("不分页查询")
    @GetMapping("/findStaColonyCountList")
    public Result findStaColonyCountList(StaParam param){
        return staColonyCountService.findStaColonyCountList(param);
    }

    @ApiOperation("分页查询")
    @GetMapping("/findStaColonyCountPageList")
    public Result findStaColonyCountPageList(StaParam param){
        return staColonyCountService.findStaColonyCountPageList(param);
    }

    @ApiOperation("新增")
    @PostMapping("/addStaColonyCount")
    public Result addStaColonyCount(@RequestBody StaColonyCount staColonyCount){
        return  staColonyCountService.addStaColonyCount(staColonyCount);
    }

    @ApiOperation("修改")
    @PostMapping("/editStaColonyCount")
    public Result editStaColonyCount(@RequestBody StaColonyCount supplier) {
        return staColonyCountService.editStaColonyCount(supplier);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteStaColonyCountList")
    public Result batchDeleteStaColonyCountList(@RequestBody StaDto dto){
        return  staColonyCountService.batchDeleteStaColonyCountList(dto);
    }
}
